package es.unex.meigas.gui;

import java.awt.Graphics;

import javax.swing.ImageIcon;

public class EmptyPanel extends DasocraticInfoPanel {

	ImageIcon m_Image;
	
	public EmptyPanel(){
		
		super(null, null);		
		
	}
	
	protected void initializeContent() {

		m_Image = new ImageIcon(getClass().getClassLoader()
						.getResource("images/splash.png"));
		
	}

	protected void initGUI() {}
	
	public void paint(Graphics g){
		
		int x =  (this.getWidth() - m_Image.getIconWidth()) / 2;
		int y =  (this.getHeight() - m_Image.getIconHeight()) / 2;
		
		m_Image.paintIcon(this, g, x, y);	
		
	}
	

	public boolean checkDataAndUpdate() {
		
		return true; 
		
	}

	protected void updateContent() {}

}
